package com.akbar.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import lombok.*;

/**
 * <p>
 * 用户表 (统一所有用户)
 * </p>
 *
 * @author akbar
 * @since 2025-07-21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("sys_user")
public class SysUser {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String username;

    private String password;

    private String email;

    private String phone;

    private String realName;

    private String avatar;

    /**
     * 状态：1-启用，0-禁用
     */
    private Integer status;

    /**
     * 用户类型
     */
    private String userType;

    /**
     * 连续登录失败次数
     */
    private Integer failCount;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

    /**
     * 账号锁定时间
     */
    private LocalDateTime lockedAt;
}
